package com.jtjrenren.android.taxi.passenger.utils;

import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.Marker;
import com.baidu.mapapi.map.OverlayOptions;
import com.baidu.mapapi.map.Polyline;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/2/17.
 */
public class BdMapMarkerManger extends OverlayManager {
    private List<OverlayOptions> optionsList;

    public void setOptionsList(List<OverlayOptions> optionsList) {
        this.optionsList = optionsList;
        removeFromMap();
    }

    /**
     * 通过一个BaiduMap 对象构造
     *
     * @param baiduMap
     */
    public BdMapMarkerManger(BaiduMap baiduMap) {
        super(baiduMap);
        optionsList = new ArrayList<>();
    }

    @Override
    public List<OverlayOptions> getOverlayOptions() {
        return optionsList;
    }

    @Override
    public boolean onMarkerClick(Marker marker) {
        return false;
    }

    @Override
    public boolean onPolylineClick(Polyline polyline) {
        return false;
    }
}
